module top_module (
    input ring,
    input vibrate_mode,
    output ringer, 
    output motor       
);

    assign {ringer, motor} = ring ? (vibrate_mode ? 2'b01 : 2'b10) : 2'b00;
    
endmodule
